package two.chapter_1.c1_4;

import edu.princeton.cs.algs4.StdOut;

public class DoublingRatio {

    public static void main(String []args){
        double prev=DoublingTest.timeTrial(25);
        for (int N=250;true;N+=N){
            double time=DoublingTest.timeTrial(N);
            StdOut.printf("%6d %7.1f",N,time);
            StdOut.printf("%5.1f\n",time/prev);
            prev=time;
        }
    }
}
